﻿using _1_Interfaces.Models.Dtos.Cjw;
using _1_Interfaces.Models.Tables.Cjw;
using System;
using System.Collections.Generic;
using System.Text;

namespace _1_Interfaces.Interfaces.Cjw
{
    /// <summary>
    /// 聊天服务
    /// </summary>
    public interface IChatListService
    {
        /// <summary>
        /// 小程序发送消息
        /// </summary>
        /// <param name="userSendDto"></param>
        /// <returns></returns>
        bool UserSendMessage(UserSendDto userSendDto);

        /// <summary>
        /// 医生收取消息
        /// </summary>
        /// <param name="docName">医生帐号</param>
        /// <param name="state">0 或者 1 没有全部 不会传全部的 全部不考虑</param>
        /// <param name="pageIndex">第几页</param>
        /// <param name="pageSize">一页几条</param>
        /// <returns></returns>
        ChatListDto DocGetMessage(string docName, int state, int pageIndex, int pageSize);

        /// <summary>
        /// 医生发消息
        /// </summary>
        /// <param name="docSendDto"></param>
        /// <returns></returns>
        bool DocSendMessage(DocSendDto docSendDto);

        /// <summary>
        /// 用户看医生回复
        /// </summary>
        /// <param name="openId ">openId</param>
        /// <returns></returns>
        List<ChatList> UserGetMessage(string openId);

        /// <summary>
        /// 用户评价
        /// </summary>
        /// <param name="userRateDto"></param>
        /// <returns></returns>
        bool UserRate(UserRateDto userRateDto);
    }
}
